package cn.tedu._03mybatis.mapper;

import cn.tedu._03mybatis.pojo.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
/**
 * Mapper注解:
 *   1.MyBatis框架的注解;
 *   2.为该接口创建对应的实现类,并实现对应的方法;
 */
@Mapper
public interface UserMapper {
    @Insert("INSERT INTO user(username,password,nickname,created) VALUES(#{username},#{password},#{nickname},#{created})")
    int insertUser(User user);
    //@Insert()、@Update()、@Delete()、@Select()
}
